/**
 *
 */
package com.angel.data.generator.checkers.impl;

import com.angel.data.generator.checkers.DataGeneratorChecker;
import com.angel.data.generator.exceptions.DataGeneratorCheckerException;
import com.angel.data.generator.exceptions.DataGeneratorException;
import com.angel.data.generator.interfaces.DataGenerator;
import com.angel.data.generator.repository.DataGeneratorRepository;

/**
 * @author William
 *
 */
public class NullDataGeneratorChecker implements DataGeneratorChecker{

	public void checkDataGenerator(DataGenerator dataGenerator, DataGeneratorRepository dataGeneratorRepository) throws DataGeneratorException {
		if(dataGenerator == null){
			throw new DataGeneratorCheckerException("Data generator class is null. There are " + dataGeneratorRepository.size() + " dependencies added.");
		}
	}


}
